package cn.zspt.vank.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringDocConfig {
    @Bean
    public OpenAPI myOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("梵客API")
                        .description("梵客餐饮点餐、管理")
                        .version("v1.0.0")
                        .license(new License()
                                .name("许可协议")
                                .url("http://www.baidu.com"))
                        .contact(new Contact()
                                .name("凡")
                                .email("10550494@qq.com"))) ;
    }
}
